package com.ruoyi.passengers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passengers.mapper.MileageInformationMapper;
import com.ruoyi.passengers.domain.MileageInformation;
import com.ruoyi.passengers.service.IMileageInformationService;

/**
 * 里程信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class MileageInformationServiceImpl implements IMileageInformationService 
{
    @Autowired
    private MileageInformationMapper mileageInformationMapper;

    /**
     * 查询里程信息
     * 
     * @param id 里程信息主键
     * @return 里程信息
     */
    @Override
    public MileageInformation selectMileageInformationById(Long id)
    {
        return mileageInformationMapper.selectMileageInformationById(id);
    }

    /**
     * 查询里程信息列表
     * 
     * @param mileageInformation 里程信息
     * @return 里程信息
     */
    @Override
    public List<MileageInformation> selectMileageInformationList(MileageInformation mileageInformation)
    {
        return mileageInformationMapper.selectMileageInformationList(mileageInformation);
    }

    /**
     * 新增里程信息
     * 
     * @param mileageInformation 里程信息
     * @return 结果
     */
    @Override
    public int insertMileageInformation(MileageInformation mileageInformation)
    {
        return mileageInformationMapper.insertMileageInformation(mileageInformation);
    }

    /**
     * 修改里程信息
     * 
     * @param mileageInformation 里程信息
     * @return 结果
     */
    @Override
    public int updateMileageInformation(MileageInformation mileageInformation)
    {
        return mileageInformationMapper.updateMileageInformation(mileageInformation);
    }

    /**
     * 批量删除里程信息
     * 
     * @param ids 需要删除的里程信息主键
     * @return 结果
     */
    @Override
    public int deleteMileageInformationByIds(Long[] ids)
    {
        return mileageInformationMapper.deleteMileageInformationByIds(ids);
    }

    /**
     * 删除里程信息信息
     * 
     * @param id 里程信息主键
     * @return 结果
     */
    @Override
    public int deleteMileageInformationById(Long id)
    {
        return mileageInformationMapper.deleteMileageInformationById(id);
    }
}
